package com.chixing.day04_oop;
/*
    构造函数的作用：初始化对象
*/
public class CarTest {
    public static void main(String[] args) {
        Car car1 = new Car();
        car1.setCarId(101);
        car1.setCarName("A6L");

        Car car2 = new Car(102,"劳斯莱斯");
    }
}
